#include <iostream>
using namespace std;
class A {
public:
	void foo (void) {
		cout << "A::foo(void)" << endl;
	}
};
class B{
public:
	void foo (int i) {
		cout << "B::foo(int)" << endl;
	}
};

class C:public A, public B{
public:
	//使用using指令, 将A和B类中的foo函数引入到C类中, 
	//形成重载关系
	using A::foo;
	using B::foo;
};

int main (void)
{
	C c;
	//c.foo ();
#if 0
	c.A::foo ();
	c.B::foo (100);
#endif
	c.foo ();
	c.foo (1234);
	return 0;
}
